package org.apache.ibatis.main;

/**
 * @author wangtbo
 * @date 2023/1/13 16:56
 * @description mybatis测试用的实体类
 */
public class Blog {
  private Long id;
  private String userName;
  private Integer age;

  public Blog() {
  }

  public Blog(String userName, Integer age) {
    this.userName = userName;
    this.age = age;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  @Override
  public String toString() {
    return "Blog{" +
      "id=" + id +
      ", userName='" + userName + '\'' +
      ", age=" + age +
      '}';
  }
}
